import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'login',
    component: () => import(/* webpackChunkName: "about" */ '../views/Login.vue')
  },
  {
    path: '/login',
    name: 'login',
    component: () => import(/* webpackChunkName: "about" */ '../views/Login.vue')
  },
  {
    path: '/register',
    name: 'register',
    component: () => import(/* webpackChunkName: "about" */ '../views/register.vue')
  },
  {
    path: '/user/studentselect',
    name: 'studentselect',
    component: () => import('../views/StudentSelect.vue'),
  },
  {
    path: '/user/studentcheck',
    name: 'user',
    component: () => import('../views/StudentCheck'),
  },
  {
    path: '/user',
    name: 'user',
    component: () => import('../views/User.vue'),
  },
  {
    path: '/user/grade',
    name: 'grade',
    component: () => import('../views/grade'),
  },
  {
    path: '/user/studentgrade',
    name: 'studentgrade',
    component: () => import('../views/studentgrade'),
  },
  {
    path: '/user/studentlist',
    name: 'studentlist',
    component: () => import('../views/studentlist'),
  },
  {
    path: '/user/teacherclass',
    name: 'teacherclass',
    component: () => import('../views/teacherclass'),
  },
  {
    path: '/user/teachersearch',
    name: 'teachersearch',
    component: () => import('../views/teachersearch'),
  },
  {
    path: '/user/studentsearch',
    name: 'studertsearch',
    component: () => import('../views/studertsearch'),
  },
  {
    path: '/user/classsearch',
    name: 'classsearch',
    component: () => import('../views/classsearch'),
  },

]

const router = new VueRouter({
  routes
})

export default router
